import os

from selenium import webdriver
from selenium.webdriver.common.by import By
import  time

driver = webdriver.Chrome()
path =os.path.join(os.path.abspath('html3'),'radio-checkbox.html')
driver.get(path)

inputs=driver.find_elements(By.XPATH,'//input[@type="checkbox"]')
# form1 =driver.find_element(By.XPATH,'//form[2]')
# form1.find_element()



time.sleep(2)
for index,val in enumerate(inputs):
    print(index)
    if index ==2:
        break
    val.click()



time.sleep(2)
driver.quit()